import numpy as np
def dottime(a,b):
      a=np.matrix(a)
      b=np.matrix(b)
      if np.size(a)!=np.size(b):
            print('传入矩阵的维度不同，无法进行数组运算！')
            print('请检查传入矩阵的维度！！！')
      else:
            c=np.zeros_like(a)
            c=np.matrix(c)
            for i in range(0,np.size(a,0)):
                  for j in range(0,np.size(a,1)):
                        c[i,j]=a[i,j]*b[i,j]
      return c